package lhc.learn.bio;

import java.util.concurrent.*;

/**
 * Created by Lihc on 2016/3/24.
 */
public class TimeServerHandlerExecutePool {

    /**
     * 线程池。
     */
    private ExecutorService service;

    /**
     * 构造函数
     *
     * @param maxPoolSize
     * @param queueSize
     */
    public TimeServerHandlerExecutePool(int maxPoolSize, int queueSize) {
        service = Executors.newCachedThreadPool();
    }

    /**
     * 执行方法
     *
     * @param runnable 线程
     */
    public void execute(Runnable runnable) {
        service.execute(runnable);
    }


}
